/****************************************************
          File Name:asctime.c
          Author: Abby Cin
          Mail: abbytsing@gmail.com
          Created Time: Tue 12 Aug 2014 09:13:43 AM CST
*****************************************************/

#include<stdio.h>
#include<time.h>

int main()
{
    char *curtime;
    struct tm *gmp;
    time_t timep;

    timep=time(NULL);
    gmp=gmtime(&timep);

    curtime=asctime(gmp);
    printf("the asctime's return(UTC) is: %s\n",curtime);

    return 0;
}
